package cn.life.money.api;

import cn.life.common.pojo.CommonResult;
import cn.life.money.dto.DemoDTO;
import cn.life.money.service.biz.DemoBizService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 提供 RESTful API 接口，给 Feign 调用
 */
@RestController
@Validated
public class DemoApiImpl implements DemoApi {

    @Resource
    private DemoBizService demoBizService;

    @Override
    public CommonResult<String> demo(DemoDTO dto) {
        demoBizService.demo();
        return new CommonResult<>();
    }
}
